package com.lsqingfeng.springboot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @className: ThirdWeatherConfig
 * @description: 三方天气变量封装
 * @author: sh.Liu
 * @date: 2022-01-12 10:33
 */

@Configuration
@ConfigurationProperties(prefix = "third.weather")
public class ThirdWeatherConfig {

    private String url;
    private Integer port;
    private String username;

    private String[] cities;

    private List<String> list;

    public void setUrl(String url) {
        this.url = url;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUrl() {
        return url;
    }

    public Integer getPort() {
        return port;
    }

    public String getUsername() {
        return username;
    }

    public String[] getCities() {
        return cities;
    }

    public void setCities(String[] cities) {
        this.cities = cities;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }
}
